-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy: add a --all/-a flag #741
Conversation
af802fb
to
dd291ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to have some more test to hit more code paths. We could, for instance, copy docker://alpine:latest
to oci:
, dir:
, and containers-storage:
... storage is currently erroring out.
Not sure I follow here. Are there paths that you have in mind that |
dd291ab
to
9e87c39
Compare
Rebased. |
Eeek ... I assumed that storage would support it. |
Test are looking good and exhaustive 👍 I assumed that storage would support it with the c/image PR which made me conclude the tests aren't catching it. |
f9b9bf5
to
464f541
Compare
464f541
to
eb02bce
Compare
Retargeted to pull in containers/image master. |
@nalind, can you squash the commits? It'll reduce some noise when bisecting. |
Add a --all/-a flag to instruct us to attempt to copy all of the instances in the source image, if the source image specified to "skopeo copy" is actually a list of images. Previously, we'd just try to locate one for our preferred OS/arch combination. Add a couple of tests to verify that we can copy an image into and then back out of containers-storage. The contents of an image that has been copied out of containers-storage need a bit of tweaking to compensate for containers-storage's habit of returning uncompressed versions of the layer blobs that were originally written to it, in order to be comparable to the image as it was when it was pulled from a registry. Signed-off-by: Nalin Dahyabhai <[email protected]>
eb02bce
to
7d251f5
Compare
Okay, squashed it all down. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, merging so we unblock c/image CI 👍
skopeo needs to be told to copy all instances of a given image, otherwise it just grabs one of them. containers/skopeo#741 Change-Id: If78ad50602e745ef7747d983b987cf964ff6e67f
Add a
--all
/-a
flag to instruct us to attempt to copy all of the instances in the source image, if the source image specified toskopeo copy
is actually a list of images. Previously, we'd just try to locate one for our preferred OS/arch combination.This vendors the branch from containers/image#400 and a temporary workaround for containers/podman#4227, so it is not ready for merging in its current form.